﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
</head>
<body>
    <div style="margin: 15px;">
        未登录或登录超时! <b id="second"></b>秒后返回登录界面...
    </div>
    <script type="text/javascript" src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
        $(function () {
            timeOut(3);

            function timeOut(wait) {
                $('#second').text(wait);
                if (wait > 0) {
                    setTimeout(function () {
                        timeOut(--wait);
                    }, 1000);
                } else {
                    window.open('@Url.Action("Index", "Login")', '_top')
                }
            }
        });
    </script>
</body>
</html>
